import React, {Component} from 'react';
import {
    StyleSheet,
    Text,
    View,
    Image,
    Dimensions,
    ListView,
    TouchableOpacity,
    Platform
} from 'react-native';

const {height, width} = Dimensions.get('window');
export default class LoginButCompoment extends Component {
    constructor(props) {
        super(props);
        this.state = {}
    };

    render() {
        return (
            <TouchableOpacity
                onPress={()=>{
                    if(this.props.login){
                        this.props.login('login')
                    }
                }}
                style={styles.butsView}>
                <Text style={{fontSize:17,color:'#ffffff'}}>登录</Text>
            </TouchableOpacity>
        );
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: '#f0f0f0'
    },
    butsView:{
        height:44,
        width:width-30,
        backgroundColor:'#3e6ee6',
        borderRadius:5,
        justifyContent:'center',
        alignItems:'center'
    }
});
